<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>二级域名分发-{$web_title}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta content="二级域名分发,域名租用，免费二级域名" name="description" />
        <meta content="艾客二级域名分发是为客户提供二级域名租用的平台" name="author" />
        <!-- App favicon -->
       <!-- third party css -->
        <link href="/public/assets/css/vendor/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- third party css end -->
 <!--<link rel="stylesheet" type="text/css" href="/public/static/index/layui/css/layui.css" />-->
        <!-- App css -->
        <link href="/public/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <link href="/public/assets/css/app.min.css" rel="stylesheet" type="text/css" />

    </head>

    <body>

        <!-- Begin page -->
        <div class="wrapper">

            <!-- ========== Left Sidebar Start ========== -->
           {include file="public/left" /}

            <!-- ============================================================== -->
            <!-- Start Page Content here -->
            <!-- ============================================================== -->

            <div class="content-page">
                <div class="content">

                    <!-- Topbar Start -->
               {include file="public/top" /}
                    <!-- end Topbar -->

                    <!-- Start Content-->
                    <div class="container-fluid">
                        
                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box">
                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="/index/domain">首页</a></li>
                                           
                                            <li class="breadcrumb-item active">域名分发</li>
                                        </ol>
                                    </div>
                                    <h4 class="page-title">二级域名分发</h4>
                                </div>
                            </div>
                        </div>     
                        <!-- end page title --> 

                        <div class="row">
                       
                        </div>
                        <!-- end row -->

                        <div class="row">
                   
                        </div>
                        <!-- end row -->


                        <div class="row">
                         <!-- end col -->

                            <div class="col-lg-6" style="margin: 0 auto;">
                                <div class="card" >
                                    <div class="card-body">

                                        <h4 class="header-title">使用说明</h4>
                                        <p class="text-muted">
                                           为保证解析的安全性以及方便日后修改解析，请登录后使用二级服务！
                                        </p>

                                         <form class="layui-form" action="" method="post">
                                            
                                          

                                            <div class="form-group mb-3">
                                                <label>选择域名并输入前缀</label>
                                                <div class="input-group">
                                                  
                                                    <input type="text" class="form-control" name="domain" placeholder="请输入域名前缀" aria-label="" aria-describedby="basic-addon1" >
                                                      <div class="input-group-prepend">
                                                         
                                                    <select name="domains" class="form-control">
                                                         {volist name='domain' id='vo' }
                                                        <option value="{$vo.id},{$vo.name}">{$vo.name}{if condition="$vo.group_id eq 57680"} 已备案过微信
{elseif condition="$vo.group_id eq 57681"/}微信缓存域名
{elseif condition="$vo.group_id eq 57683"/}已备案微信屏蔽
{elseif condition="$vo.group_id eq 57684"/}未备案微信屏蔽
{elseif condition="$vo.group_id eq 57685"/}未备案过微信
{else /} 未分类
{/if}</option>
                                                        {/volist}
                                                        
                                                       
                                                    </select>
                                                   
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group mb-3">
                                                <label for="example-input-large">服务器ip</label>
                                                <input type="text" name="doip" class="form-control form-control-lg" placeholder="请输入服务器ip">
                                            </div>
                                          <div style="text-align:center">
                                              {empty name="login"}  
                          <a href="/index/login" class="btn btn-primary">登录</a>
                            {else /}
                                <button type="submit" class="btn btn-primary">解析</button>
                                 {/empty}  
                                              
                                              
                                       
                                          </div>
                                        </form>

                                    </div> <!-- end card-body -->
                                </div> <!-- end card -->
                            </div> <!-- end col -->
                        </div>
                        <!-- end row -->


                       
                        <!-- end row -->


                        <!-- Inline Form -->
                      
                        <!-- end row -->



                        <!-- Form row -->
                     
                        <!-- end row -->
                        
                    </div> <!-- container -->
       {empty name="mydomain"}  
       
        {else /}
      <div class="container-fluid">
                        
                        <!-- start page title -->
                       
                        <!-- end page title --> 

                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-body">
                                
                                        <div class="table-responsive">
                                            <table class="table table-centered w-100 dt-responsive nowrap" id="products-datatable">
                                                <thead class="thead-light">
                                                    <tr>
                                                        <th class="all" style="width: 20px;">
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="checkbox" class="custom-control-input" id="customCheck1">
                                                                <label class="custom-control-label" for="customCheck1">&nbsp;</label>
                                                            </div>
                                                        </th>
                                                        <th class="all">域名前缀</th>
                                                        <th>域名</th>
                                                        <th>指向ip</th>
                                                      
                                                      
                                                        <th style="width: 85px;">操作</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {volist name='mydomains' id='vo' }
                                                    <tr>
                                                        <td>
                                                            {$vo.id}
                                                        </td>
                                                        <td>
                                                           {$vo.name}
                                                        </td>
                                                        <td>
                                                           {$vo.domain}
                                                        </td>
                                                        <td>
                                                           {$vo.ip}
                                                        </td>
                                                      
                                                  
                                                        <td class="table-action">
                                                         <!--<a href="javascript:void(0);" class="action-icon"> <i class="mdi mdi-eye"></i></a>-->
                                                            <a href="{:url('/index/domain/edit',array('id'=>$vo.id))}" class="action-icon"> <i class="mdi mdi-square-edit-outline"></i></a>  
                                                       
                                                            <a href="{:url('/index/domain/del',array('name'=>$vo.name))}" class="action-icon"> <i class="mdi mdi-delete"></i></a>
                                                        </td>
                                                    </tr>
                                                     {/volist}
                                           
                                          
                                                </tbody>
                                            </table>
                                        </div>
                                    </div> <!-- end card-body-->
                                </div> <!-- end card-->
                            </div> <!-- end col -->
                        </div>
                        <!-- end row -->        
                        
                    </div>
               {/empty}                            
                                        
                                        
                                        
                </div> <!-- content -->

                <!-- Footer Start -->
               {include file="public/foot" /}
                <!-- end Footer -->

            </div>

            <!-- ============================================================== -->
            <!-- End Page content -->
            <!-- ============================================================== -->


        </div>
        <!-- END wrapper -->


        <!-- Right Sidebar -->
        <div class="right-bar">

            <div class="rightbar-title">
                <a href="javascript:void(0);" class="right-bar-toggle float-right">
                    <i class="dripicons-cross noti-icon"></i>
                </a>
                <h5 class="m-0">Settings</h5>
            </div>

            <div class="slimscroll-menu rightbar-content">

                <!-- Settings -->
                <hr class="mt-0" />
                <h5 class="pl-3">Basic Settings</h5>
                <hr class="mb-0" />

                <div class="p-3">
                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="notifications-check" checked>
                        <label class="custom-control-label" for="notifications-check">Notifications</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="api-access-check">
                        <label class="custom-control-label" for="api-access-check">API Access</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="auto-updates-check" checked>
                        <label class="custom-control-label" for="auto-updates-check">Auto Updates</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="online-status-check" checked>
                        <label class="custom-control-label" for="online-status-check">Online Status</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="auto-payout-check">
                        <label class="custom-control-label" for="auto-payout-check">Auto Payout</label>
                    </div>

                </div>


                <!-- Timeline -->
                <hr class="mt-0" />
                <h5 class="pl-3">Recent Activity</h5>
                <hr class="mb-0" />
                <div class="pl-2 pr-2">
                    <div class="timeline-alt">
                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a>
                                <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">5 minutes ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-airplane bg-primary-lighten text-primary timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-primary font-weight-bold mb-1 d-block">Product on the Bootstrap Market</a>
                                <small>Dave Gamache added
                                    <span class="font-weight-bold">Admin Dashboard</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">30 minutes ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-microphone bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">Robert Delaney</a>
                                <small>Send you message
                                    <span class="font-weight-bold">"Are you there?"</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">2 hours ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-primary-lighten text-primary timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-primary font-weight-bold mb-1 d-block">Audrey Tobey</a>
                                <small>Uploaded a photo
                                    <span class="font-weight-bold">"Error.jpg"</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">14 hours ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a>
                                <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">1 day ago</small>
                                </p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>


        <div class="rightbar-overlay"></div>
        <!-- /Right-bar -->

        <!-- App js -->
    
      <script src="/public/assets/js/app.min.js"></script>

        <!-- third party js -->
        <script src="/public/assets/js/vendor/Chart.bundle.min.js"></script>
        <!-- third party js ends -->

        <!-- demo app -->
        <script src="/public/assets/js/pages/demo.project-detail.js"></script>
    </body>
</html>
